from Qshop.celery import app
from ronglian_sms_sdk import SmsSDK
from Qshop.settings import accId, accToken, appId, tid


@app.task
def celery_task():
    print('say hello')


@app.task
def send_message(mobile, datas):
    sdk = SmsSDK(accId, accToken, appId)
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)
